#ifndef MUSICLIST_H
#define MUSICLIST_H

#include <QVector>
#include <QUrl>
#include <QMimeDatabase>
#include "musicinfo.h"

class MusicList
{
    typedef QVector<MusicInfo>::iterator iterator;
public:
    MusicList();
    //将url中音乐文件进行过滤保证是音频文件
    void addMusicByUrl(const QList<QUrl>& urls);
    iterator begin();
    iterator end();
    iterator findMusicById(const QString& id);
private:
    QVector<MusicInfo> musicList;
};

#endif // MUSICLIST_H
